package edu.scau.mis.dashboard.Service;

import edu.scau.mis.dashboard.dto.CategorySalesDTO;
import edu.scau.mis.dashboard.vo.PieDataVo;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public interface ISaleItemService {

    /**
     * 获取所有年份各月销售数据
     *
     */
    Map<Integer, BigDecimal[]> getYearlyMonthlySales();
    /**
     * 获取指定日期范围内销量前7的商品分类
     */
    List<CategorySalesDTO> getTopCategorySalesAmount(LocalDate startDate, LocalDate endDate);

    List<PieDataVo> getTopCategorySalesQuantity(LocalDate startDate, LocalDate endDate);
}
